{% extends "base.html" %}
{% block title %}问答社区 - 注册{% endblock %}


<body>
{% block body %}

    <main class="main-content container">
        <div class="register-container">
            <h2>用户注册</h2>
            <form id="registerForm" class="register-form">
                <div class="form-group">
                    <label for="email">邮箱</label>
                    <input type="email" id="email" name="email" required placeholder="请输入您的邮箱">
                </div>
                <div class="form-group verification-code">
                    <label for="verificationCode">验证码</label>
                    <div class="code-input-container">
                        <input type="text" id="verificationCode" name="verificationCode" required placeholder="请输入验证码">
                        <button type="button" id="getCodeBtn" class="btn-get-code">获取验证码</button>
                    </div>
                </div>
                <div class="form-group">
                    <label for="username">用户名</label>
                    <input type="text" id="username" name="username" required placeholder="请输入用户名">
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" name="password" required placeholder="请输入密码">
                </div>
                <div class="form-group">
                    <label for="confirmPassword">确认密码</label>
                    <input type="password" id="confirmPassword" name="confirmPassword" required placeholder="请再次输入密码">
                </div>
                <button type="submit" class="btn-register-submit">立即注册</button>
            </form>
        </div>
    </main>

{% endblock %}